﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="registerTitle" ContentPlaceHolderID="TitleContent" runat="server">
	Create application
</asp:Content>
<asp:Content ID="registerContent" ContentPlaceHolderID="MainContent" runat="server">
	<% using (Html.BeginForm())
	{ %>
	<div class="pagetitle">
		<h1>
			Create a new list
		</h1>
	</div>
	<div class="pagecontent">
		<p>
			Use the form below to create a new list.
		</p>
		<%= Html.ValidationSummary("Creation was unsuccessful. Please correct the errors and try again.") %>
		<div>
			<fieldset>
				<legend>List information</legend>
				<p>
					<label for="name">
						Name:</label>
					<%= Html.TextBox("name") %>
					<%= Html.ValidationMessage("name") %>
				</p>
				<p>
					<label for="ispublic">
						Is public:</label>
					<%= Html.CheckBox("ispublic") %>
					<%= Html.ValidationMessage("ispublic")%>
				</p>
				<p>
					<label for="shortname">
						Short name: (a-z and 0-9)</label>
					<%= Html.TextBox("shortname") %>
					<%= Html.ValidationMessage("shortname")%>
				</p>
			</fieldset>
		</div>
	</div>
	<div class="pageactions">
		<p>
			<input type="submit" value="Create list" />
		</p>
	</div>
	<% } %>
</asp:Content>
